#ifndef CREATEROOMREQ_H
#define CREATEROOMREQ_H

#include "protocol.h"
#include "createroomresp.h"
#include "roommanager.h"
#include "tetrixserver.h"

class CreateRoomReq : public ProtoSrv
{
public:
    CreateRoomReq() : ProtoSrv(PT_CREATE_ROOM) {}
    CreateRoomReq(const std::string& name,const std::string& password = "") : ProtoSrv(PT_CREATE_ROOM),_name(name),_password(password) {};
    ~CreateRoomReq() {}

    virtual bool                encode(ACE_OutputCDR &cdr);
    virtual ProtoSrv*           decode(ACE_InputCDR &cdr);
    virtual ProtoSrv*           execute(ACE_SOCK_Stream &peer);
private:
    std::string _name;
    std::string _password;
};

#endif // CREATEROOMREQ_H
